<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/base/base.jsp"%>
<%@ include file="/base/database.jsp" %>
	<%
		request.setCharacterEncoding("utf-8");
	
	    String instID=request.getParameter("instID");
		String instName=request.getParameter("instName");
		String institude=request.getParameter("institude");
		String depID=request.getParameter("depID");
		String telephone=request.getParameter("telephone");
		
		StringBuffer sqlBuff=new StringBuffer();
		sqlBuff.append("update sys_instructorinfo set instID=?,instName=?,institude=?,depID=?,telephone=?");
		String sql=sqlBuff.toString();
		
		Connection conn=getConn();
		PreparedStatement pstmt=conn.prepareStatement(sql);
		
		int parameterIndex=1;
		
		pstmt.setString(parameterIndex++,instID);
		pstmt.setNString(parameterIndex++,instName);
		pstmt.setNString(parameterIndex++,institude);
		pstmt.setNString(parameterIndex++,depID);
		pstmt.setNString(parameterIndex++,telephone);
		
		int count=pstmt.executeUpdate();
		
		if(pstmt!=null){
			pstmt.close();
		}
		if(conn!=null){
			conn.close();
		}
	
		process(request,response,"/page/instructor/instructor_list1.jsp");
	
	%>